package com.hhkj.study.admin.user.service.biz;

import com.hhkj.study.admin.order.model.podo.OrderItemPo;
import com.hhkj.study.api.user.model.res.ApiUserListenCourseRes;

import java.util.List;

/**
* UserCourseBizService
*
* @author SERVER
* @since 2024-09-06
*/
public interface UserCourseBizService {

    /**
     * 处理订单中用户课程,计算用户听课时长等
     * @param orderItemList
     * @return
     */
    List<ApiUserListenCourseRes> handlerOrderCourseList(List<OrderItemPo> orderItemList, Long userId);

    List<ApiUserListenCourseRes> handlerOrderCourseListByOrderIdList(List<Long> orderItemIdList, Long userId);
}